import './index.css'
import text from "./text.js"
import icon from "./image/better.png"


console.log("index.js");

document.body.append(text())


const img = new Image();
img.src=icon
img.width=100
img.height=100
document.body.appendChild(img)

// 输入框,
// let lastEditor = createEditor();
module.hot.accept("./text.js",()=>{
  console.log("webpack 热更新,index.js加载text.js");
  // const value = lastEditor.innerHTML
  // document.body.removeChild(lastEditor)
  // const newEditor =  createEditor()
  // newEditor.innerHTML= value
  // document.body.appendChild(newEditor)
  // lastEditor= newEditor

})

